<?
	require_once('../inc.php');
	$rs = User::Get($_REQUEST['id']);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
	.child-list
	{
		border: 1px solid black;
	}
	.child-list h4
	{
		text-align:center;
		background-color: #404055;
		color: #FFF;
		margin: 0px 0px 0px 0px;
	}
</style>
</head>

<body>
    	<? if($rs){ ?>
				<a href="edit.php?id=<?=$rs['id']?>">Edit</a>
				<a href="delete.php?id=<?=$rs['id']?>">Delete</a>
				<br />
                
				First Name: <?=$rs['FirstName']?><br />
                Last Name: <?=$rs['LastName']?><br />
                Password: <?=$rs['Password']?><br />
                Birthday: <?=date('M d, Y', strtotime( $rs['Birthday'] ))?><br />
                Created At: <?=$rs['created_at']?><br />
        <? } ?>
        
        <div class="child-list">
        	<h4>Contact Methods</h4>
        	<? include '../ContactMethod/indexCM.php'; ?>
        </div>
</body>
</html>
